<%@ page contentType="text/html; charset=utf-8" language="java" extends="org.zizi.service.JspPageServlet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>专用设置和技术维护费抵减系统</title>
<jsp:include page="engine.jsp" ></jsp:include>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.login_container {width:996px; margin:0 auto; padding-top:115px; background:url(images/index/container_bg.gif) repeat-x;}
.login_panel {margin:0 auto; width:520px; height:243px; background:url(images/index/login_panel_bg.gif) no-repeat; }
.input {float:left; font-size:18px; color:#FFF; font-weight:bold; padding:61px 0 62px 60px; vertical-align:middle;}
.input input {width:185px; height:27px; line-height:27px; font-size:14px;}
.submit {float:left; padding:64px 0 65px 20px;}
.submit .button {width:105px; height:114px; cursor:pointer; background:url(images/index/login_button_bg.gif);}
</style>
<script type="text/javascript">
function keyh()
{
	var evt = window.event || arguments.callee.caller.arguments[0];
	if (evt.keyCode == 13) login();
}

function login()
{
	var username = $("username").value;
	var password = $("password").value;
	if (username.length == 0)
	{
		alert("请输入账号！");
		return;
	}
	if (password.length == 0)
	{
		alert("请输入密码！");
		return;
	}
	
	var action = new Action("Login");
	action.username = username;
	action.password = password;
	
	var callback = function(result)
	{
		location.replace("/submit.jsp");
	}
	Rpc.call(action, callback);
}
</script>
</head>
<body onload="resize()">
	<div id="container">
		<div class="top"></div>
		<div class="login_container">
			<div class="login_panel">
				<div class="input">
					<table cellspacing="0" cellpadding="0" border="0">
						<tr>
							<td height="60px">用户名：</td><td><input id="username" type="text" onkeyup="keyh()" /></td>
						</tr>
						<tr>
							<td height="60px">密　码：</td><td><input id="password" type="password" onkeyup="keyh()" /></td>
						</tr>
					</table>
				</div>
				<div class="submit">
					<div class="button" onclick="login()"></div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>